package function;

import java.util.HashMap;

public class fileinfo {
	private String name;
	private String url;
	private String code;
	private String oldcode;
	private long size;
	private String type;
	private HashMap<Integer, String> content;
	/**
	 *  初始化文件
	 * @param name
	 * @param url
	 * @param code
	 * @param size
	 * @param type
	 * @param content
	 */
	public fileinfo(String name,String url,String code,long size,String type,HashMap<Integer,String> content) {
		this.name=name;
		this.url=url;
		this.code=code;
		this.oldcode=code+"";
		this.size=size;
		this.type=type;
		this.content=content;
	}
	public String getOldcode() {
		return this.oldcode;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public long getSize() {
		return size;
	}
	public void setSize(long size) {
		this.size = size;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	/**
	 * 获取文本
	 * @return
	 */
	public HashMap<Integer, String> getContent() {
		return content;
	}
	public void setContent(HashMap<Integer, String> content) {
		this.content = content;
	}
}
